home *** CD-ROM | disk | FTP | other *** search
/ CD School House 9 / CD School House 9.0 - Wayzata Technology (1994).iso / pc / dos / teachaid / pccai / cai210.doc < prev    next >
Text File  |  1994-05-18  |  31KB  |  887 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.           
  7.           
  8.           
  9.                                   PC-CAI 2.10
  10.                                 Manual Supplement
  11.                                  TexaSoft, 1993
  12.           
  13.           
  14.           PC-CAI 2.10 Supplement
  15.           
  16.           Copyright 1993 by TexaSoft.
  17.           
  18.           All rights reserved. Printed in the United States of
  19.           America. No part of this book may be used or reproduced in
  20.           any form or by any means, or stored in a database or
  21.           retrieval system, without prior permission of the publisher
  22.           except in the case of brief quotations embodied in critical
  23.           articles and reviews. Making copies of any part of this book
  24.           for any purpose other than your own personal use is a
  25.           violation of United States copyright laws. For information,
  26.           address TexaSoft, P.O. Box 1169, Cedar Hill, 75104.
  27.           
  28.           This book and software program is sold as is, without
  29.           warranty of any kind either express or implied, respecting
  30.           the contents of this book and software program, including
  31.           but not limited to implied warranties for the book's or
  32.           software's quality, performance, merchantability, or fitness
  33.           for any particular purpose. Neither TexaSoft not its dealers
  34.           or distributors shall be liable to the purchaser or any
  35.           other person or entity with respect to any liability, loss,
  36.           or damage caused or alleged to be caused directly or
  37.           indirectly by the book or software program.
  38.           
  39.           MANUAL AUTHOR:Alan C. Elliott
  40.           PRODUCTION TEAM:Alan C. Elliott, Carol Bigler, Paul Witt,
  41.           Nancy Witt
  42.           TESTING TEAM: Paul M. Allen (Texas), James Bair
  43.           (Conneticut), Randy DeKler (Florida),Tom Dolan (Ireland),
  44.           Joyce Epstein (New York), Nicholas Humphries (Australia),
  45.           Robert McNary (Montana), Don Moore (Iowa), Mike Pennachi
  46.           (Montana) and Joe M. Wolff (New York)
  47.           
  48.           
  49.           
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.                                         1
  60.  
  61.  
  62.  
  63.  
  64.  
  65.           
  66.           PC-CAI 2.10 Manual Supplement
  67.           _________________________________________________________
  68.           
  69.           
  70.           PC-CAI 2.10 INTRODUCTION
  71.           ========================
  72.           This manual supplement describes new program features to the
  73.           PC-CAI program  not included in the main PC-CAI manual.
  74.           
  75.           Note: Before beginning to use PC-CAI, please be sure to run
  76.           the CAI-UTIL program to set up default drives, colors, and
  77.           other options for the editor and for CREATE. Also, be sure
  78.           to look at the two demo programs called DEMO and CREATE. You
  79.           can start these programs at the DOS prompt with the
  80.           commands:
  81.           
  82.           CAI DEMO          (requires CGA compatible monitor)
  83.           and
  84.           CAI CREATE
  85.           
  86.           OTHER PC-CAI PROGRAMS/SAMPLES ON DISK
  87.           =====================================
  88.           PCTUTOR - A CAI tutorial on how to use DOS
  89.           MENU - A sample program using the @CASE command
  90.           BORDER - Sample borders
  91.           BOX - Sample boxes
  92.           FUNCTION - Sample use of function keys
  93.           VIEW - Sample use of viewer
  94.           TESTPCX - Sample use of TXPCX program
  95.           And other sample .CAI programs
  96.           
  97.           Run these programs by entering CAI programname at the DOS
  98.           prompt.
  99.           
  100.           OTHER PROGRAMS ON DISK
  101.           ======================
  102.           BIGLET - A program to produce BIG letters
  103.           PM2IMG - A program to translate Print Master
  104.           graphics into PC-CAI IMG graphics.
  105.           CAIGRADE - Program that reads GRADE output file and
  106.           reports results
  107.           
  108.           For more details about these programs see the section
  109.           "Supplemental Programs later in this document."
  110.           
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.                                         2
  119.  
  120.  
  121.  
  122.  
  123.  
  124.           
  125.           PC-CAI 2.10 Manual Supplement
  126.           _________________________________________________________
  127.           
  128.           
  129.           SUBMIT YOUR OWN SAMPLES
  130.           =======================
  131.           The SAMPLES.DOC file contains a sample submission form. If
  132.           you submit a short sample, and it is used, you will receive
  133.           a free one year Extended Support for your PC-CAI program
  134.           giving you all updates free for a year.
  135.           
  136.           USING PCX GRAPHICS IN PC-CAI
  137.           ============================
  138.           There are now two ways to display PCX graphics in PC-CAI.
  139.           The .PCX command can be used as described in the main
  140.           manual, or you can use a new PCX viewer program called
  141.           TXPCX. In order to display PCX graphics properly on the
  142.           screen using the .PCX command, they need to match the
  143.            .SCREEN command. For example, if your PCX file was created
  144.           in low resolution CGA mode, you will need to be in SCREEN 1
  145.           mode. High Resolution CGA mode is SCREEN 2, and EGA color
  146.           mode is SCREEN 9. These are the only modes directly
  147.           supported. Displaying PCX graphics that were created in
  148.           other modes may distort the graphics picture.
  149.           
  150.           However,  there are two other ways to display PCX graphics.
  151.           
  152.           1. Using the CAIPCX Program
  153.           2. Using the TXPCX Program
  154.           
  155.           USING THE CAIPCX PROGRAM
  156.           ========================
  157.           The purpose of the CAIPCX program is to display a PCX
  158.           graphic file on the screen. This can be used instead of the
  159.            .PCX command in PC-CAI.
  160.           
  161.           The format of the command is:
  162.           
  163.             CAIPCX filename pcxmode,y,x,returnmode,returntype
  164.           
  165.           where...
  166.           
  167.           filename - the name of the PCX graphic file
  168.           pcxmode - the mode to be used to display the graph (see mode
  169.           numbers listed below)
  170.           y - vertical location
  171.           x - horizontal location
  172.           returnmode - the mode that you want to revert to when then program
  173.           ends. (see END NOTE below)
  174.  
  175.  
  176.  
  177.                                         3
  178.  
  179.  
  180.  
  181.  
  182.  
  183.           
  184.           PC-CAI 2.10 Manual Supplement
  185.           _________________________________________________________
  186.           
  187.           
  188.           returntype - 0 is text, 1 is graphic. Specifies what type you want
  189.           to return to when the program ends.
  190.           
  191.           If you leave off returnmode and returntype by using the syntax:
  192.           
  193.              CAIPCX filename pcxmode,y,x
  194.           
  195.           the PCX graphic will be displayed and the PCX viewer program will
  196.           immediately end, leaving the graphic on the screen and remaining in
  197.           the same mode and type. This is the standard way CAIPCX is used
  198.           from PC-CAI when you use the PCX command. If you include a
  199.           returnmode and returntype, the PCX graphic will be displayed and
  200.           remain on the screen until a key is pressed. Then the screen will
  201.           go to the specified returnmode and returntype.
  202.           
  203.           CALLING CAIPCX FROM WITHIN PC-CAI
  204.           =================================
  205.           If you are using one the standard modes within PC-CAI
  206.           (SCREEN 0, 1 or 9), then use the .PCX command as described
  207.           in the PC-CAI manual. If you want to display a PCX file in
  208.           another mode, use the @SHELL command. For example:
  209.           
  210.             @SHELL(*CAIPCX TESTPCX 4,0,0,0,0*)
  211.           
  212.           Would display the file named TESTPCX in mode 4 (EGA 2
  213.           colors) at position 0,0. When a key was pressed, the screen
  214.           would revert to CGA text mode. See the table of monitor
  215.           modes on the next page.
  216.           
  217.           USING THE TXPCX PROGRAM
  218.           =======================
  219.           Use the @Shell command to access the TXPCX command. For example,
  220.           the syntax of this command is
  221.           
  222.             @SHELL(*TXPCX  filename,n*)
  223.           
  224.           where filename is the name of a .PCX file and n is a number
  225.           from 10 to 100, designating the size of the PCX file to be
  226.           displayed. For example, the command
  227.           
  228.             @SHELL(*TXPCX  WOLF,50*)
  229.           
  230.           would display the wolf.pcx graphic as 50% size. See the
  231.           program TESTPCX.CAI
  232.           
  233.  
  234.  
  235.  
  236.                                         4
  237.  
  238.  
  239.  
  240.  
  241.  
  242.           
  243.           PC-CAI 2.10 Manual Supplement
  244.           _________________________________________________________
  245.           
  246.           
  247.           
  248.           
  249.             Table of Monitor Modes for the CAIPCX Program
  250.           --------------------------------------------------
  251.                0 - 320 x 200 pixel CGA (4 colors)
  252.                1 - 640 x 200 pixel CGA (2 colors)
  253.                2 - 320 x 200 pixel EGA (16 colors)
  254.                3 - 640 x 299 pixel EGA (16 colors)
  255.                4 - 640 x 350 pixel EGA (2 colors)
  256.                5 - 640 x 350 pixel EGA (16 colors)
  257.                6 - 640 x 480 pixel VGA (2 colors)
  258.                7 - 640 x 480 pixel VGA (16 colors)
  259.                8 - 320 x 200 pixel VGA (256 colors)
  260.                9 - 720 x 348 pixel Hercules (2 colors)
  261.                10- 800 x 600 pixel Tseng (256 colors)
  262.                11- 640 x 350 pixel Tseng (256 colors)
  263.                12- 640 x 480 pixel Tseng (256 colors)
  264.                13- 800 x 600 pixel Tseng (256 colors)
  265.                14- 800 x 600 pixel Paradise (16 colors)
  266.                15- 800 x 600 pixel Paradise (2 colors)
  267.                16- 640 x 400 pixel Paradise (256 colors)
  268.                17- 640 x 480 pixel Paradise (256 colors)
  269.                18- 800 x 600 pixel Video 7 (16 colors)
  270.                19- 640 x 400 pixel Video 7 (256 colors)
  271.                20- 640 x 480 pixel Video 7 (256 colors)
  272.                21- 800 x 600 pixel Video 7 (256 colors)
  273.           
  274.           
  275.           NEW & IMPROVED "AT" (@)  COMMANDS
  276.           =================================
  277.           The following sections describe new and improved "@"
  278.           commands in PC-CAI version 2.10.
  279.           
  280.           CHAINING PROGRAMS (@CHAIN)
  281.           ==========================
  282.           The @CHAIN command allows you to chain a number of programs
  283.           together so that when one stops another is automatically
  284.           begun. The syntax for this command is
  285.           
  286.              @CHAIN (*FILE*)
  287.           
  288.           This command allows you to exit one PC-CAI program and start
  289.           another. It allows you to break your programs into modules
  290.           and chain from one to another. For example, suppose you want
  291.           to leave one PC-CAI program and begin one named NEWPROG. You
  292.  
  293.  
  294.  
  295.                                         5
  296.  
  297.  
  298.  
  299.  
  300.  
  301.           
  302.           PC-CAI 2.10 Manual Supplement
  303.           _________________________________________________________
  304.           
  305.           
  306.           can do this with the command
  307.           
  308.              @CHAIN (*NEWPROG*)
  309.           
  310.           Your old program will be removed from PC-CAI memory, and the
  311.           new one will be loaded and run. This enables you to write
  312.           longer programs that would not normally fit into the PC-CAI
  313.           editor (about 30K). When you chain programs, grading WILL BE
  314.           REMEMBERED across chained programs. You will not lose your
  315.           count of right, wrong answers or the percentage right grade.
  316.           Another aid in writing long programs is the Question Bank
  317.           found in the PC-CAI PLUS edition.
  318.           
  319.           NEW GRADE OPTIONS (@GRADE)
  320.           ==========================
  321.           This new command allows you to output grade results at any time.
  322.           The syntax for the @GRADE command is
  323.           
  324.              @GRADE [FILE = filename] [SCREEN] [SUMMARY]
  325.           
  326.           The FILE= option allows you to send results to a file. If SUMMARY
  327.           is used with the FILE= command, only the final summary of the grade
  328.           is reported instead of the results of each individual question. The
  329.           SCREEN option causes the grade report to be displayed to the
  330.           screen. See also the @STOP command.
  331.           
  332.           NEW IF OPTIONS (@IF)
  333.           ====================
  334.           New to the @IF command is a GRADE condition. You can now use the
  335.           @IF command to branch the program according to the current grade.
  336.           For example, you can use the statements
  337.           
  338.               @IF GRADE < ## then :LABEL
  339.           or
  340.               @IF GRADE > ## then :LABEL
  341.           
  342.           where ## is a number between 0 and 100. If the condition is
  343.           met, the program will branch to the designated label. For
  344.           example:
  345.           
  346.             @IF GRADE<90 then :WASLESS
  347.             Your score is 90 or above
  348.             @GOTO:SKIPGRADE
  349.             @LABEL:WASLESS
  350.             Your score is less than 90
  351.  
  352.  
  353.  
  354.                                         6
  355.  
  356.  
  357.  
  358.  
  359.  
  360.           
  361.           PC-CAI 2.10 Manual Supplement
  362.           _________________________________________________________
  363.           
  364.           
  365.             @LABEL:SKIPGRADE
  366.             continue...
  367.           
  368.           MENUING COMMAND (@CASE)
  369.           =======================
  370.           You can now use the options NOBOX and NOCHOICE in the @CASE
  371.           command. The NOBOX option causes the command to display the
  372.            @CASE information without a box and the NOCHOICE option
  373.           causes the command information to be displayed without the
  374.           "Enter Choice:" option being displayed. This allows you more
  375.           freedom in using this command.
  376.           
  377.           OPTIONS GOTO (@OPTIONS)
  378.           =======================
  379.           A new option in the @OPTION command is  ESCAPE:Label. This option
  380.           allows you to specify where the program will go when the user
  381.           presses the Esc key. For example, the command
  382.           
  383.             @OPTION ESCAPE:MENU
  384.           
  385.           would cause the user to be sent to the label called
  386.           
  387.             @LABEL:MENU
  388.           
  389.           in the program when the Esc button was pressed.
  390.           
  391.           ZERO OUT GRADING (@RESTORE)
  392.           ===========================
  393.           The @RESTORE command zeros out counting for question
  394.           grading. Thus, if you have some preliminary questions to ask
  395.           before starting to keep records, place the @RESTORE command
  396.           right before you want to start counting right and wrong
  397.           answers.
  398.           
  399.           STOP COMMAND ENHANCEMENTS (@STOP)
  400.           =================================
  401.           The syntax for the @STOP command is
  402.           
  403.             @STOP GO:LABEL
  404.           
  405.           A new option to the @STOP command is GO:Label. When you use
  406.           the @STOP command with the GO:Label option, the program will
  407.           end, then resume at the label specified in the GO:Label
  408.           option. For example:
  409.           
  410.  
  411.  
  412.  
  413.                                         7
  414.  
  415.  
  416.  
  417.  
  418.  
  419.           
  420.           PC-CAI 2.10 Manual Supplement
  421.           _________________________________________________________
  422.           
  423.           
  424.             @STOP GO:AGAIN
  425.           
  426.           would cause the program to stop, then begin again at the
  427.           label named AGAIN. Other options to the @STOP command
  428.           include the GRADE SUMMARY
  429.           
  430.              @STOP GRADE SUMMARY
  431.           
  432.           This causes the grade option to output only the final
  433.           summary of the grade rather than the result of each
  434.           individual question. See also the new @GRADE command.
  435.           
  436.           NEW PC-CAI 2.10 DOT COMMANDS
  437.           ============================
  438.           The following commands are new and enhanced commands for
  439.           version 2.10.
  440.           
  441.           MAKING BORDERS (.BORDER)
  442.           ========================
  443.           The syntax for the border command is
  444.           
  445.             .BORDER (*a,b,c,d) [double] [fill]
  446.           
  447.           where a,b,c,d are the coordinates for the top left (a,b) of the
  448.           border and the bottom right (c,d). Examples:
  449.           
  450.             .bord (*1,1,20,70*)
  451.             .bord (*1,1,20,70*) double
  452.             .bord (*1,1,20,70*) fill
  453.             .bord (*1,1,20,70*) double fill
  454.           
  455.           Putting a color command just before the .bord command will
  456.           allow you to display the border in a color. Place another
  457.            .color just after the .bord command to return to your
  458.           default color. For example:
  459.           
  460.             .color 4,7
  461.             .bord(*10,10,20,65*)
  462.             .color 15,1
  463.           
  464.           See also the sample program called BORDER.CAI.
  465.           
  466.  
  467.  
  468.  
  469.  
  470.  
  471.  
  472.                                         8
  473.  
  474.  
  475.  
  476.  
  477.  
  478.           
  479.           PC-CAI 2.10 Manual Supplement
  480.           _________________________________________________________
  481.           
  482.           
  483.           MAKING BOXES (.BOX)
  484.           ===================
  485.           The box command allows you to create boxes containing text. The
  486.           syntax of the command is
  487.           
  488.             .box (*x,y*) [border] [right|center] [shadow]
  489.             :
  490.             text
  491.             :
  492.             .endbox
  493.           
  494.           Where x and y are the coordinates of the top left of the
  495.           box. The width and length of the box are determined by the
  496.           text. For example:
  497.           
  498.             .cls
  499.             .box (*10,12*) border right
  500.             Place the box to the right, no shadow
  501.             This is the first line
  502.             This is the second line
  503.             Last line, special character (.CHR225)
  504.             .endbox
  505.           
  506.           To make a box a different color from the screen and text
  507.           colors surrounding it, put the colors for the box
  508.           immediately before the  .box command. Resume the default
  509.           screen colors with another .color command immediately after
  510.           the .endbox. For example:
  511.           
  512.            .color 4,7
  513.            .box (*10,10*) border center
  514.           
  515.             Exercise Two
  516.           
  517.            .endbox
  518.            .color 15,1
  519.           
  520.           See also the program called BOX.CAI.
  521.           
  522.  
  523.  
  524.  
  525.  
  526.  
  527.  
  528.  
  529.  
  530.  
  531.                                         9
  532.  
  533.  
  534.  
  535.  
  536.  
  537.           
  538.           PC-CAI 2.10 Manual Supplement
  539.           _________________________________________________________
  540.           
  541.           
  542.           SPECIAL CHARACTER DISPLAY
  543.           =========================
  544.           To print a special character (any ASCII character), you can
  545.           use the command
  546.           
  547.           (.CHR###)
  548.           
  549.           where ### is the ASCII code for a character. For example,
  550.           the code (.CHR225) would display the ASCII character number
  551.           225 (an alpha). For an example, see the program BOX.CAI.
  552.           
  553.           NEW (.INF) OPTIONS
  554.           ==================
  555.           The (.INF #) command is used to store information gathered
  556.           from a  .INFORMATION command. Two new ways of using the
  557.           command are as follows: If you embed the command  (.) in
  558.           output, the (.) will be replaced with the answer given for
  559.           the last questions. For example, you could use the following
  560.           in a program:
  561.           
  562.           Your answer was (.) for the last question.
  563.           
  564.           If the answer was WASHINGTON, for example, this would be
  565.           displayed as Your answer was WASHINGTON for the last
  566.           question. Three new defined meanings for (.INF #) are as
  567.           follows (.INF 11) is the current number of RIGHT answers.
  568.           (.INF 12) is the current number of WRONG answers. (.INF 13)
  569.           is the current PERCENT RIGHT grade (for example 80 for 80%
  570.           right) This information can be displayed at any time. For
  571.           example, you could use the statement: Your current score on
  572.           this test is (.INF 13). See also a new option in the @IF
  573.           command.
  574.           
  575.           DEFINE FUNCTION KEYS (.FUN)
  576.           ===========================
  577.           The new .fun command allows you to define the meaning of the
  578.           function keys. The syntax for the command is
  579.           
  580.             .fun# =GO:label or
  581.           
  582.           
  583.             .fun# =SHELL:command
  584.           
  585.           This command allows you to define what will happen when the
  586.           user presses a function key. The GO option causes the
  587.  
  588.  
  589.  
  590.                                         10
  591.  
  592.  
  593.  
  594.  
  595.  
  596.           
  597.           PC-CAI 2.10 Manual Supplement
  598.           _________________________________________________________
  599.           
  600.           
  601.           program to go to a label. The SHELL option causes the
  602.           program to shell to DOS and execute the command specified.
  603.           For example, to cause the PC-CAI Help to appear when F1 is
  604.           pressed, you would use the command:
  605.           
  606.             .fun1 =shell:txhelp cai.hlp
  607.           
  608.           You can create your own help file using the structure of the
  609.           current CAI.HLP file. For an example of using functions see
  610.           the program FUNCTION.CAI.
  611.           
  612.           RECORD COMMAND CHANGES (.RECORD)
  613.           ================================
  614.           If you include the option TIME at the end of the record
  615.           command, the output will include the system time appended to
  616.           the end of the output line. This allows you to tell when an
  617.           event took place. If you place a record before and after a
  618.           question, you can tell when the question was answered, and
  619.           how long between the display of the question, and the end.
  620.           
  621.           VIEW A FILE (.VIEW)
  622.           ===================
  623.           This command allows you to view the contents of an ascii
  624.           (text) file. The syntax of the command is:
  625.           
  626.             .view (*filename*)
  627.           
  628.           The viewer will appear, and the user can scroll up or down.
  629.           This can be used if you want the user to be able to read and
  630.           review a long passage before going forward in the program.
  631.           
  632.           When viewing a file, you can change colors at any time by
  633.           including the following code on a line (). These
  634.           are the same colors used in the .COLOR command. You can
  635.           perform more than one color change on a line. For example:
  636.           
  637.            This is an (~15,2~)IMPORTANT!(~15,1~) message.
  638.           
  639.           For an example of the view command see the program VIEW.CAI.
  640.           
  641.  
  642.  
  643.  
  644.  
  645.  
  646.  
  647.  
  648.  
  649.                                         11
  650.  
  651.  
  652.  
  653.  
  654.  
  655.           
  656.           PC-CAI 2.10 Manual Supplement
  657.           _________________________________________________________
  658.           
  659.           
  660.           PC-CAI RUNTIME NOTES
  661.           ====================
  662.           The following sections contain other information about new
  663.           features in version 2.10
  664.           
  665.           BRUN40.EXE FILE NO LONGER NEEDED
  666.           ================================
  667.           To distribute a CAI program, you must include the CAI.EXE
  668.           runtime program on disk. In earlier versions, you had to
  669.           also include the file BRUN40.EXE on disk. A change in the
  670.           way CAI is now compiled means that the file BRUN40.EXE is no
  671.           longer required to run CAI.EXE. However, there are a couple
  672.           of extra program files that you need to know about, and
  673.           which you can place on the disk of a program you are
  674.           distributing. These are:
  675.           
  676.           CAIPCX.EXE - This file needs to be on disk if the command
  677.           ".PCX" is used in a program. It is the command that allows
  678.           you to display PCX graphics.
  679.           
  680.           TXPCX.EXE - This file is needed if you use this program to
  681.           display PCX graphics.
  682.           
  683.           Therefore, to distribute a CAI program, all you need to
  684.           include on the disk is the file CAI.EXE. However, if you can
  685.           optionally include the other files as needed. YOU MUST BE
  686.           A REGISTERED USER BEFORE YOU CAN DISTRIBUTE PROGRAMS USING
  687.           THE CAI RUNTIME MODULES.
  688.           
  689.           The "runtime" program (CAI.EXE) is now separate from the
  690.           editor, so there is no possibility that an encoded file can
  691.           be edited. The editor will not edit an encoded file. You
  692.           must run an encoded file through the decoder first in order
  693.           to edit it.
  694.           
  695.           To begin editing a file, use the CAIEDIT command. To run a
  696.           CAI program from DOS, use the command
  697.           
  698.              @INDENT = CAI filename
  699.           
  700.  
  701.  
  702.  
  703.  
  704.  
  705.  
  706.  
  707.  
  708.                                         12
  709.  
  710.  
  711.  
  712.  
  713.  
  714.           
  715.           PC-CAI 2.10 Manual Supplement
  716.           _________________________________________________________
  717.           
  718.           
  719.           DEFINE ALT KEYS
  720.           ===============
  721.           By placing key definitions in a file called CAIKEYS.DAT, you
  722.           can define meaning for an ALT-KEY combination. For example,
  723.           if the following information is in this file:
  724.           
  725.            A=ü
  726.            B=é
  727.            C=â
  728.            d=ä
  729.            e=à
  730.           
  731.           For example, whenever you hold the Alt-key down and
  732.           simultaneously press the B key, an e with an accent will
  733.           appear. This works both in the editor and in a CAI tutorial.
  734.           Therefore, you can use it for creating a tutorial, and the
  735.           person taking the tutorial can use it to enter answers in a
  736.           program. The only restriction is that you cannot use ASCII
  737.           characters above 250. You will have to inform your audience
  738.           what the keys mean.
  739.           
  740.           SUPPORT FOR SOUND BLASTER
  741.           =========================
  742.           If your computer is equipped with a sound blaster and the
  743.           SBTALKER software, you can cause CAI to "talk". SBTALKER
  744.           must be installed prior to running PC-CAI. Usually, it is
  745.           with a DOS command such as
  746.           
  747.            sbtalker /dblaster
  748.           
  749.           Then, you can use the .TALK (*something*) command to cause
  750.           yourprogram to talk. For example:
  751.           
  752.             .talk (*This is a test of talker*)
  753.           
  754.           If SBTALKER is not loaded, the command is ignored -- thus
  755.           you can put it in your code and it will not cause a problem
  756.           if the person running the program does not have Sound
  757.           Blaster.
  758.           
  759.           Note: SBTALKER makes a good effort at pronouncing words.
  760.           However, sometimes you may have to spell a word phonetically
  761.           for it to sound right.
  762.           
  763.  
  764.  
  765.  
  766.  
  767.                                         13
  768.  
  769.  
  770.  
  771.  
  772.  
  773.           
  774.           PC-CAI 2.10 Manual Supplement
  775.           _________________________________________________________
  776.           
  777.           
  778.           CAI STARTUP MODE CHANGES
  779.           ========================
  780.           A change has been made so CAI does not automatically clear
  781.           the screen when begun. This allows you to display a message
  782.           on the screen using a batch file that will not be erased
  783.           until the program takes over. This comes in handy when you
  784.           are beginning a program from an encoded file, which may take
  785.           some time before appearing on the screen. For example, you
  786.           might want to use a batch file like this:
  787.           
  788.            ECHO OFF
  789.            CLS
  790.            REM put some message here
  791.            CAI MYPROG
  792.           
  793.           Then, your message will be on the screen until the MYPROG program
  794.           takes over.
  795.           
  796.           SUPPLEMENTAL PROGRAMS
  797.           =====================
  798.           1. The BIGLET program allows you to create big letters. This
  799.           is useful for creating large titles for your PC-CAI
  800.           programs. Save the results to a file, then merge the file
  801.           into your CAI program using the editor (or the .USE
  802.           command).  Begin the BIGLET program from DOS with the
  803.           command BIGLET.
  804.           
  805.           2. The CAIGRADE program will summarize the output of a CAI
  806.           tutorial for which you have used the GRADE option. The .BAS
  807.           (Basic language) source code is included so you can modify
  808.           this program for your own use. Begin the CAIGRADE program
  809.           from the DOS prompt with the command CAIGRADE.
  810.           
  811.           If you have two or more grade output files (say from
  812.           separate disks), use the copy command to append them
  813.           together before running the CAIGRADE program on them. For
  814.           example, say you have the files GRADE1.OUT, GRADE2.OUT and
  815.           GRADE3.OUT. You could create a file named GRADE.OUT with the
  816.           DOS copy command:
  817.           
  818.           COPY GRADE1.OUT+GRADE2.OUT+GRADE3.OUT GRADE.OUT
  819.           
  820.           3. The PM2IMG program translates Print Master (PM) shape
  821.           files to TexaSoft PC-CAI Image (IMG) files. To translate PM
  822.           files, you should have a SDR and SHP file. The example on
  823.  
  824.  
  825.  
  826.                                         14
  827.  
  828.  
  829.  
  830.  
  831.  
  832.           
  833.           PC-CAI 2.10 Manual Supplement
  834.           _________________________________________________________
  835.           
  836.           
  837.           disk are files called CARLOGOS.SHP and CARLOGOS.SDR. Begin
  838.           the program at the DOS prompt with the command
  839.           
  840.           PM2IMG
  841.           
  842.           You will be asked to enter the name of the PM file to convert.
  843.           Enter the name. For this example, it would be
  844.           
  845.           CARLOGOS
  846.           
  847.           The translation will take place, and each image will appear
  848.           on the screen as it is translated. The result will be an IMG
  849.           file for each PM Shape. You may now use these images in the
  850.           PC-CAI program or edit them in the PC-CAI Image Editor.
  851.           Note: The PM2IMG will not translate shape files from the New
  852.           Printshow, only from the older editions.
  853.           
  854.           4. Files with a .CAI extension are sample PC-CAI programs.
  855.           These are here to give you examples of how to write your own
  856.           programs. You may use parts of these programs to create your
  857.           own programs. If you have sample programs you would like to
  858.           donate to this disk, please send them to TexaSoft, PO Box
  859.           1169, Cedar Hill, Texas 75104. (See the SAMPLES.DOC file on
  860.           the PC-CAI disk).  For example, the COLORS.CAI program,
  861.           donated by Don Moore of Teikyo Marycrest University (Iowa),
  862.           helps you choose color combinations for screen.
  863.           
  864.  
  865.  
  866.  
  867.  
  868.  
  869.  
  870.  
  871.  
  872.  
  873.  
  874.  
  875.  
  876.  
  877.  
  878.  
  879.  
  880.  
  881.  
  882.  
  883.  
  884.  
  885.                                         15
  886.  
  887.